package com.biannuo.szk.demo.provider.fallback;

import com.biannuo.szk.common.bean.ComplexObject;
import com.biannuo.szk.common.bean.Params;
import com.biannuo.szk.common.bean.Result;
import com.biannuo.szk.demo.provider.feign.DemoProviderClient;
import org.springframework.stereotype.Component;

/**
 * 提供者回调
 *
 * @author szk
 */
@Component
public class DemoProviderClientFallback implements DemoProviderClient {
    @Override
    public String openFeignProviderTest() {
        return "我是兜底方法";
    }

    @Override
    public String sampleParamsProviderTest(String name, Integer id) {
        return "我是兜底方法";
    }

    @Override
    public String springQueryMapProviderTest(Params params) {
        return "我是兜底方法";
    }

    @Override
    public Result complexObjectProviderTest(ComplexObject complexObject) {
        return null;
    }

   /* @Override
    public Result complexObjectProviderTest(ComplexObject complexObject, Params params) {
        return null;
    }*/
}
